#include "StdAfx.h"
#include "EndNode.h"

EndNode EndNode::cInstance( "PROBE");

EndNode::EndNode(const char* szID )
	: Node( szID )
{
}
EndNode::EndNode(void)
{
	input = new Input();
	this->input->registerObserver(this);
}

EndNode::~EndNode(void)
{
	delete input;
}

void EndNode::notify()
{
	this->notifyObservers();
}

void EndNode::SetCircuit(Observer* circuit)
{
	this->registerObserver(circuit);
}

bool EndNode::IsSet()
{
	return this->input->IsSet();
}

int EndNode::GetValue()
{
	return this->input->GetValue();
}


Input* EndNode::GetInputForLink()
{
	return input;
}

Node* EndNode::clone()
{
	return new EndNode();
}